package com.xdf.vpndialer.utils;

import com.xdf.vpndialer.service.VpnDialer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

@Component
public class ApplicationRunnerImpl implements ApplicationRunner {
    @Autowired
    private VpnDialer dialer;

    @Override
    public void run(ApplicationArguments args) throws Exception {
        dialer.connectVPN();
    }
}
